package insight.google.game.era.service;

import insight.google.game.era.core.hub.HubServiceManager;

import org.directwebremoting.annotations.RemoteMethod;
import org.directwebremoting.annotations.RemoteProxy;


@RemoteProxy(name="HubCenter")
public class HubServiceImpl implements HubService {

	@RemoteMethod
	@Override
	public void getUpdated(int gameCenterVersion,int roomVersion) {
		HubServiceManager hubManager = HubServiceManager.getInstance();
		try{
			hubManager.updateUser(gameCenterVersion,roomVersion);
		}catch(Exception e){
			e.printStackTrace();
			return;
		}

	}

}
